package com.airtight.screens;

import android.content.Context;

import com.airtight.game.Assets;
import com.airtight.game.GameState;
import com.airtight.interfaces.Screen;

public class ScreenManager {

    private Assets assets;
    private Screen screen;
    private float ratio;
    private MainMenu mm;
    private World world;



    public ScreenManager(Context context, GameState gameState){
        assets = new Assets(context);
        mm = new MainMenu(context, this, gameState);
        world = new World(context, this, gameState);
        screen = mm;
    }

    public void loadAssets(){

    }

    public void setScreen(Screen screen){
        this.screen = screen;
    }

    public Screen getScreen(){
        return screen;
    }

    public float getRatio(){
        return ratio;
    }

    void setRatio(float ratio){
        this.ratio = ratio;
    }

    void setMainMenu(){
        mm.changeSurface(ratio);
        screen = mm;
    }

    void setWorld(){
        world.changeSurface(ratio);
        this.screen = world;
    }

    Assets getAssets(){
        return assets;
    }
}
